/* 任务原型 */
interface MModel{
    [name:string]:RoomTask
}
interface resourceData{
    num:number
    fill:boolean
}
interface TerminalData{
    [name:string]:resourceData
}

export const MissonModel:MModel = {
    /* CREEP */
    '链接送仓':{Name:'链接送仓',ID:'',range:'CREEP',delayTick:15,OnlyOne:true,cooldownTick:10,taskLevel:5,state:0},
    '终端送仓':{Name:'终端送仓',ID:'',range:'CREEP',delayTick:31,OnlyOne:true,cooldownTick:5,taskLevel:5,state:0},
    '近塔填充':{Name:'近塔填充',ID:'',range:'CREEP',delayTick:10,OnlyOne:true,cooldownTick:30,taskLevel:5,state:0},
    '仓送终端':{Name:'仓送终端',ID:'',range:'CREEP',delayTick:31,OnlyOne:true,cooldownTick:5,taskLevel:5,state:0},
    '资源传送':{Name:'资源传送',ID:'',range:'CREEP',delayTick:8000,OnlyOne:true,cooldownTick:30,taskLevel:10,state:0},
    '虫卵填充':{Name:'虫卵填充',ID:'',range:'CREEP',delayTick:100,OnlyOne:true,cooldownTick:2,taskLevel:5,state:0},
    '远塔填充':{Name:'远塔填充',ID:'',range:'CREEP',delayTick:25,OnlyOne:true,cooldownTick:20,taskLevel:5,state:0},
    "物流搬运":{Name:'物流搬运',ID:'',range:'CREEP',delayTick:35,OnlyOne:false,cooldownTick:2,taskLevel:5,state:0},
    "房间签名":{Name:'房间签名',ID:'',range:'CREEP',delayTick:1505,OnlyOne:false,cooldownTick:2,taskLevel:5,state:0},
    "原矿开采":{Name:'原矿开采',ID:'',range:'CREEP',delayTick:99999,OnlyOne:true,cooldownTick:10,taskLevel:5,state:0},
    "外矿开采":{Name:'外矿开采',ID:'',range:'CREEP',delayTick:99999,OnlyOne:false,cooldownTick:10,taskLevel:10,state:0},
    "控制冲级":{Name:'控制冲级',ID:'',range:'CREEP',delayTick:99999,OnlyOne:true,cooldownTick:10,taskLevel:10,state:0},
    "爬虫刷墙":{Name:'爬虫刷墙',ID:'',range:'CREEP',delayTick:99999,OnlyOne:false,cooldownTick:10,taskLevel:10,state:1},
    "扩张援建":{Name:'扩张援建',ID:'',range:'CREEP',delayTick:30000,OnlyOne:false,cooldownTick:10,taskLevel:10,state:1},
    "被推援建":{Name:'被推援建',ID:'',range:'CREEP',delayTick:30000,OnlyOne:false,cooldownTick:10,taskLevel:10,state:1},
    "资源掠夺":{Name:'资源掠夺',ID:'',range:'CREEP',delayTick:50000,OnlyOne:false,cooldownTick:10,taskLevel:10,state:1},
    "pb攻击":{Name:'pb攻击',ID:'',range:'CREEP',delayTick:10000,OnlyOne:true,cooldownTick:1,taskLevel:10,state:0},
    "pb运输":{Name:'pb运输',ID:'',range:'CREEP',delayTick:3000,OnlyOne:true,cooldownTick:1,taskLevel:10,state:0},
    "攻防一体":{Name:'攻防一体',ID:'',range:'CREEP',delayTick:15000,OnlyOne:false,cooldownTick:10,taskLevel:10,state:0},
    "拆家一体":{Name:'拆家一体',ID:'',range:'CREEP',delayTick:15000,OnlyOne:false,cooldownTick:10,taskLevel:10,state:0},
    "双人小队":{Name:'双人小队',ID:'',range:'CREEP',delayTick:60000,OnlyOne:false,cooldownTick:10,taskLevel:10,state:1},
    "强化刷墙":{Name:'强化刷墙',ID:'',range:'CREEP',delayTick:99999,OnlyOne:false,cooldownTick:10,taskLevel:10,state:1},
    "红球防御":{Name:'红球防御',ID:'',range:'CREEP',delayTick:99999,OnlyOne:false,cooldownTick:5,taskLevel:10,state:0},
    "黄球拆迁":{Name:'黄球拆迁',ID:'',range:'CREEP',delayTick:99999,OnlyOne:false,cooldownTick:5,taskLevel:10,state:0},
    /* STRUCTURE */
    "链传送能":{Name:'链传送能',ID:'',range:'STRUCTURE',delayTick:15,OnlyOne:false,cooldownTick:10,taskLevel:5,state:0},
    "lab合成":{Name:'lab合成',ID:'',range:'STRUCTURE',delayTick:99999,OnlyOne:false,cooldownTick:10,taskLevel:5,state:0},
    "防塔刷墙":{Name:'防塔刷墙',ID:'',range:'STRUCTURE',delayTick:30,OnlyOne:true,cooldownTick:10,taskLevel:10,state:0},
    "防御敌虫":{Name:'防御敌虫',ID:'',range:'STRUCTURE',delayTick:30,OnlyOne:true,cooldownTick:10,taskLevel:10,state:0},
    "观察房间":{Name:'观察房间',ID:'',range:'STRUCTURE',delayTick:10,OnlyOne:true,cooldownTick:0,taskLevel:10,state:0},
    "power升级":{Name:'power升级',ID:'',range:'STRUCTURE',delayTick:99999,OnlyOne:true,cooldownTick:5,taskLevel:10,state:0},
    /* ROOM */
    "核弹填充":{Name:'核弹填充',ID:'',range:'ROOM',delayTick:99999,OnlyOne:false,cooldownTick:10,taskLevel:5,state:0},
    "power采集":{Name:'power采集',ID:'',range:'ROOM',delayTick:99999,OnlyOne:true,cooldownTick:10,taskLevel:5,state:0},
    "搓pixel":{Name:'搓pixel',ID:'',range:'ROOM',delayTick:99999,OnlyOne:true,cooldownTick:10,taskLevel:5,state:0},
}

export const TerminalResource:TerminalData = {
    'energy':{num:100000,fill:true},
    'power':{num:1000,fill:false},
    'ops':{num:1000,fill:false},
    'U':{num:500,fill:false},
    'K':{num:500,fill:false},
    'L':{num:500,fill:false},
    'Z':{num:500,fill:false},
    'G':{num:500,fill:false},
    'O':{num:500,fill:false},
    'H':{num:500,fill:false},
    'OH':{num:1000,fill:false},
    'ZK':{num:1000,fill:false},
    'UL':{num:1000,fill:false},
    'UH':{num:2000,fill:false},
    'UH2O':{num:2000,fill:false},
    'UO':{num:2000,fill:false},
    'UHO2':{num:2000,fill:false},
    'XUH2O':{num:2000,fill:false},
    'XUHO2':{num:2000,fill:false},
    'LO':{num:2000,fill:false},
    'LH':{num:2000,fill:false},
    'LH2O':{num:2000,fill:false},
    'LHO2':{num:2000,fill:false},
    'XLH2O':{num:2000,fill:false},
    'XLHO2':{num:2000,fill:false},
    'ZO':{num:2000,fill:false},
    'ZH':{num:2000,fill:false},
    'ZH2O':{num:2000,fill:false},
    'ZHO2':{num:2000,fill:false},
    'XZH2O':{num:2000,fill:false},
    'XZHO2':{num:2000,fill:false},
    'KO':{num:2000,fill:false},
    'KH':{num:2000,fill:false},
    'KH2O':{num:2000,fill:false},
    'KHO2':{num:2000,fill:false},
    'XKH2O':{num:2000,fill:false},
    'XKHO2':{num:2000,fill:false},
    'GO':{num:2000,fill:false},
    'GH':{num:2000,fill:false},
    'GH2O':{num:2000,fill:false},
    'GHO2':{num:2000,fill:false},
    'XGH2O':{num:2000,fill:false},
    'XGHO2':{num:2000,fill:false},
}